// 用户权限 登录 注册 登出 等
import request,{Method} from '@/plugins/api.js'


export function regist (params) {
    return request({
      url: '/auth/register',
      method: Method.POST,
      data: params
    });
}


export function login (params) {
  return request({
    url: '/auth/login',
    method: Method.POST,
    data: params
  });
}

export function smsLogin (params) {
  return request({
    url: '/auth/smsLogin',
    method: Method.POST,
    data: params
  });
}

export function validateCode (params) {
  return request({
    url: '/auth/validateCode',
    method: Method.POST,
    data: params
  });
}

export function resetPassword (params) {
  return request({
    url: '/auth/resetPassword',
    method: Method.POST,
    data: params
  });
}